<?php
/*******************************************************************************
 * $Date:: Jan 7, 2011 9:45:36 PM                                              $
 * $Revision:                                                                  $
 * $Author:: Tuan Duong                                                        $
 * $Comment::                                                                  $
 ******************************************************************************/ 
/**
 * Description here...
 * 
 * @package Lua
 * @subpackage Controller
 * @author Tuan Duong <bacduong[at]gmail[dot]com>
 * @version 
 */

class IndexController extends Lua_Controller_Admin
{
    public function init()
    {
        parent::init();
        $loggedUser = $this->getLoggedUser();
        if ($loggedUser->isEmpty()) {
            $this->redirect(array(
                Lua_Constant_General::PARAM_MODULE => 'admin',
                Lua_Constant_General::PARAM_CONTROLLER => 'user',
                Lua_Constant_General::PARAM_ACTION => 'login'
            ));
        }
    }
    /**
     * Index Action
     */
    public function indexAction()
    {
        Lua_Acl::getInstance();
    }
}